package org.gdtc.storefront.service.impl;

import org.gdtc.storefront.entity.Classification;
import org.gdtc.storefront.mapper.ClassificationMapper;
import org.gdtc.storefront.service.ClassificationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ClassificationServiceImpl implements ClassificationService {
    @Autowired
    private ClassificationMapper classificationMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return classificationMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Classification record) {
        return classificationMapper.insert(record);
    }

    @Override
    public Classification selectByPrimaryKey(Integer id) {
        return classificationMapper.selectByPrimaryKey(id);
    }

    @Override
    public int selectIdByClassthreename(String classthreename) {
        return classificationMapper.selectIdByClassthreename(classthreename);
    }

    @Override
    public List<Classification> selectAll() {
        return classificationMapper.selectAll();
    }

    @Override
    public List<Classification> selectThree(Integer storeid,Integer classone,Integer classthree) {
        return classificationMapper.selectThree(storeid,classone,classthree);
    }

    @Override
    public int updateByPrimaryKey(Classification record) {
        return classificationMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Classification> QueryClassone(Integer storeid) {
        return classificationMapper.QueryClassone(storeid);
    }

    @Override
    public List<Classification> QueryClasstwo(Integer storeid, Integer classone) {
        return classificationMapper.QueryClasstwo(storeid, classone);
    }

    @Override
    public List<Classification> QueryClassthree(Integer storeid, Integer classtwo) {
        return classificationMapper.QueryClassthree(storeid, classtwo);
    }

    @Override
    public int QueryClassoneLimit() {
        return classificationMapper.QueryClassoneLimit();
    }

    @Override
    public int InsClassone(Integer storeid, Integer classone, String classonename) {
        return classificationMapper.InsClassone(storeid, classone, classonename);
    }

    @Override
    public int QueryClasstwoLimit() {
        return classificationMapper.QueryClasstwoLimit();
    }

    @Override
    public int InsClasstwo(Integer storeid, Integer classone, Integer classtwo, String classtwoname) {
        return classificationMapper.InsClasstwo(storeid, classone, classtwo, classtwoname);
    }

    @Override
    public int QueryClassthreeLimit() {
        return classificationMapper.QueryClassthreeLimit();
    }

    @Override
    public int InsClassthree(Integer storeid, Integer classone, Integer classtwo, Integer classthree, String classthreename) {
        return classificationMapper.InsClassthree(storeid, classone, classtwo, classthree, classthreename);
    }

    @Override
    public int DelClassone(Integer classone, Integer storeid) {
        return classificationMapper.DelClassone(classone, storeid);
    }

    @Override
    public int DelClasstwo(Integer classtwo, Integer storeid) {
        return classificationMapper.DelClasstwo(classtwo, storeid);
    }

    @Override
    public int DelClassthree(Integer classthree, Integer storeid) {
        return classificationMapper.DelClassthree(classthree, storeid);
    }

    @Override
    public List<Classification> QueryClass() {
        return classificationMapper.QueryClass();
    }

    @Override
    public List<Classification> QueryClasstwos() {
        return classificationMapper.QueryClasstwos();
    }

    @Override
    public List<Classification> QueryClassthrees() {
        return classificationMapper.QueryClassthrees();
    }


}
